package org.yzh.protocol.jsatl12;

import io.github.yezhihao.protostar.DataType;
import io.github.yezhihao.protostar.annotation.Field;

public class TimeId {
    private int year;
    private int mouth;
    private int day;
    private int hour;
    private int minute;
    private int second;

    public TimeId() {
    }

    public TimeId(int year, int mouth, int day, int hour, int minute, int second) {
        this.year = year;
        this.mouth = mouth;
        this.day = day;
        this.hour = hour;
        this.minute = minute;
        this.second = second;
    }
    @Field(index = 0, type = DataType.BYTE, desc = "年")
    public int getYear() {
        return year;
    }
    public void setYear(int year) {
        this.year = year;
    }
    @Field(index = 1, type = DataType.BYTE, desc = "月")
    public int getMouth() {
        return mouth;
    }

    public void setMouth(int mouth) {
        this.mouth = mouth;
    }
    @Field(index = 2, type = DataType.BYTE, desc = "日")
    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }
    @Field(index = 3, type = DataType.BYTE, desc = "时")
    public int getHour() {
        return hour;
    }

    public void setHour(int hour) {
        this.hour = hour;
    }
    @Field(index = 4, type = DataType.BYTE, desc = "分")
    public int getMinute() {
        return minute;
    }

    public void setMinute(int minute) {
        this.minute = minute;
    }
    @Field(index = 5, type = DataType.BYTE, desc = "秒")
    public int getSecond() {
        return second;
    }

    public void setSecond(int second) {
        this.second = second;
    }
}
